package br.com.fafica.sisape.conexao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
	
	public static String endereco;
	public static String usuario;
	public static String senha;
	
	public Connection getConnection(){
		try{
			return DriverManager.getConnection("jdbc:mysql://"+endereco+"/SISAPE", ""+usuario+"",""+senha+"");
		}
		catch(SQLException e){
			new RuntimeException(e);
		}
		
		return null;
	}

}
